<!DOCTYPE html>
<html lang="zh-CN">
[#include "/theme/default/common/nav.html" /]
[#include "/theme/default/common/head.html" /]
[#include "/theme/default/common/footer.html" /]
[#include "/theme/default/common/page.html" /]

<head>
[@head "股票首页" /]
<style type="text/css">
body {
	padding-top: 70px;
}

footer {
	padding: 30px 0;
}
</style>
</head>

<body>
	<div class="fakeloader"></div>

    [@nav  6 /]
	<!-- /.navbar -->

	<div class="container">

		<div class="row">

			<div class="col-xs-12 col-sm-9">
				<p class="pull-right visible-xs">
					<button type="button" class="btn btn-primary btn-xs"
						data-toggle="offcanvas">Toggle nav</button>
				</p>
				<div class="jumbotron">
					<h1>爱玩社区</h1>
					<p>股票</p>
				</div>
			[#if stocks??]
				[#list stocks as item]
				<div class="row">
					<div class="col-xs-12 col-lg-12">
						<h2>${item.name!""}</h2>
						<div class="row"> 
						<div class="col-xs-3">代码:${item.code!""}</div>
						<div class="col-xs-3">行业:${item.industry!""}</div>
						<div class="col-xs-3">市盈率:${item.pe!""}</div>
						<div class="col-xs-3">市净率:${item.pb!""}</div>
						</div>
						<p>
							<a class="btn btn-default pull-right" href="${siteurl}stock/code/${item.code}.htm" role="button">点击查看更多 &raquo;</a>
						</p>
					</div>
				</div>
				<hr>
				[/#list]
				[/#if]
				<div class="col-xs-12 text-center">
				[@pager page curpage "${siteurl}stock/index.htm?x=1" /]
				</div>
				<!--/row-->
			</div>
			<!--/.col-xs-12.col-sm-9-->

			<div class="col-xs-6 col-sm-3" id="sidebar">
				<div class="list-group">
					<a href="#" class="list-group-item active">股票列表</a> 
					<a href="#"
						class="list-group-item">最新消息</a> <a href="#"
						class="list-group-item">老师推荐</a> <a href="#"
						class="list-group-item">排行榜</a> <a href="#"
						class="list-group-item">我的收藏</a> 
				</div>
			</div>
			<!--/.sidebar-offcanvas-->
		</div>
		<!--/row-->

		<hr>

		[@footer /]

	</div>
	<!--/.container-->



</body>
</html>
